import request from '@/utils/request'


//根据id 冻结
export  function freezeWorker (id) {
  return request({
    url:`/worker/basicInfo/freezeWorker/${id}`,
    method:'get'
  })
}
//根据id 解冻
export  function thawWorker (id) {
  return request({
    url:`/worker/basicInfo/thawWorker/${id}`,
    method:'get'
  })
}

//查询 worker 列表
export  function workerList (listQuery) {
  return request({
    url:`/worker/basicInfo/getPage`,
    method:'post',
    data:listQuery
  })
}

//删除 worker 列表
export  function delWorker (id) {
  return request({
    url:`/worker/basicInfo/delWorker/${id}`,
    method:'get',
  })
}
//************************************************ appea表 ***************************************
//查询 申诉 列表
export  function appealList (appListQuery) {
  return request({
    url:`/worker/appeal/appealList`,
    method:'post',
    data:appListQuery
  })

}

//根据id 修改 申诉状态
export  function  updateForm(id) {
  return request({
    url:`/worker/appeal/updateForm/${id}`,
    method:'get'
  })
}
//*****************************************  detail 页面 *************************************
//根据id 修改 申诉状态
export  function  findALlDetailInfo(detailListQuery) {
  return request({
    url:`/worker/detailInfo/findALlDetailInfo`,
    method:'post',
    data: detailListQuery
  })

}

//*****************************************  drawmonsy 页面 *************************************
//查询所有信息
export  function  findAllDrawMoney(drawListQuery) {
  return request({
    url:`/worker/drawMoney/findAllDrawMoney`,
    method:'post',
    data: drawListQuery
  })
}

//*****************************************  drawAppeal 页面 *************************************
//查询所有信息
export  function  findAllDrawMoneyById(id) {
  return request({
    url:`/worker/drawMoney/findAppealDrawById/${id}`,
    method:'get',
  })
}
//*****************************************  artificialDraw 页面 *************************************
//查询所有信息
export  function  findDetailInfoById(id) {
  return request({
    url:`/worker/detailInfo/findDetailInfoById/${id}`,
    method:'get',
  })
}













